package com.swl.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Topic {
    private Integer tid;
    private String tItem;
    private String diff;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date time;
    private School school;
    private Course course;
    private List<Choose> chooseList;

    public Topic(Integer tid) {
        this.tid = tid;
    }
}
